-- GENERATED SPELL FOR [Withervine Mire Beast] --


function spell0_4387(pUnit, Event) --@Wither Strike,Heal--
pUnit:FullCastSpellOnTarget(5337,pUnit)
pUnit:RegisterEvent('Sorts_4387', 8256, 1)
end

function Sorts_4387(pUnit, Event)
local choix_sorts_4387 = math.random(0, 0)
if choix_sorts_4387 == 0 then
pUnit:RegisterEvent('spell0_4387', 1, 1)
end
end

function mob4387_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4387', math.random(1500, 3000), 1)
end

function mob4387_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4387_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4387_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4387, 1, 'mob4387_Action')
RegisterUnitEvent(4387, 2, 'mob4387_Leave')
RegisterUnitEvent(4387, 3, 'mob4387_Kill')
RegisterUnitEvent(4387, 4, 'mob4387_Die')
